package com.sky.mapper;

import com.sky.entity.AddressBook;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AddressBookMapper {
    void insert(AddressBook addressBook);

    List<AddressBook> list(AddressBook addressBook);

    void update(AddressBook addressBook);

    @Select("select * from sky_take_out.address_book where id=#{id}")
    AddressBook getById(Long id);
    @Delete("delete from sky_take_out.address_book where id=#{id}")
    void deleteById(Long id);
}
